package com.thinkgem.jeesite.modules.app.entity;

import com.thinkgem.jeesite.common.persistence.BaseEntity;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.cms.entity.Article;
import com.thinkgem.jeesite.modules.cms.entity.ArticleData;
import com.thinkgem.jeesite.modules.cms.entity.Category;
import com.thinkgem.jeesite.modules.sys.entity.User;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * Created by xiaguoqiang on 16/5/15.
 */
public class A_article {
    private String id;
//private static final long serialVersionUID = 1L;
    private String title;	// 标题
    private String link;	// 外部链接
    private String url;   //详情url
    private String image;	// 文章图片
    private String keywords;// 关键字
    private String description;// 描述、摘要
    private Date beginDate;	// 开始时间
    private Date endDate;	// 结束时间
//    protected User createBy;	// 创建者
    protected Date createDate;	// 创建日期
//    protected User updateBy;	// 更新者
    protected Date updateDate;	// 更新日期
    private Category category;// 分类编号
    private ArticleData articleData;	//文章副表
    private List<String> list;
    private List<Object> turnNewList;
    private int commentCount;    //评论数


    public A_article() {
        super();
//        this.weight = 0;
//        this.hits = 0;
//        this.posid = "";
    }


    public List<Object> getTurnNewList() {
        return turnNewList;
    }

    public Date getCreateDate(){
        return createDate;
    }

    public void setCreateDate(Date createDate){
        this.createDate = createDate;
    }

    public Date getUpdateDate(){
        return updateDate;
    }

    public void setUpdateDate(Date updateDate){
        this.updateDate = updateDate;
    }

    public void setTurnNewList(List<Object> turnNewList){
        this.turnNewList = turnNewList;
    }

    public void setUrl(String url){
        this.url = url;
    }

    public String getUrl(){
        return url;
    }

    public void setId(String id){
        this.id = id;
    }

    public String getId(){
        return id;
    }

    public void setList(List<String> list){
        this.list = list;
    }

    public List<String> getList(){
        return list;
    }

    public void setArticleData(ArticleData articleData) {
        this.articleData = articleData;
    }

    public ArticleData getArticleData() {
        return articleData;
    }

    public A_article(Article article) {
        super();
        this.id = article.getId();
        this.title = article.getTitle();
        this.link = article.getLink();
        this.image = article.getImage();
        this.keywords = article.getKeywords();
        this.description = article.getDescription();
        this.beginDate = article.getBeginDate();
        this.endDate = article.getEndDate();
        this.createDate = article.getCreateDate();
        this.updateDate = article.getUpdateDate();
        this.category = article.getCategory();
    }
    public A_article(Article article,String a){
        this.id = article.getId();
        this.title = article.getTitle();
        this.link = article.getLink();
        this.image = article.getImage();
        this.keywords = article.getKeywords();
        this.description = article.getDescription();
        this.beginDate = article.getBeginDate();
        this.endDate = article.getEndDate();
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public int getCommentCount(){ return commentCount; }

    public void setCommentCount(int commentCount){ this.commentCount = commentCount; }

}
